package com.xinqi.modules.prepare.video.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xinqi.common.mybatis.data.entity.UpdateTimeEntity;
import com.xinqi.modules.prepare.common.domain.PrepareBaseParam;
import com.xinqi.modules.prepare.prepare.enums.PrepareVideoPointTypeEnum;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * 备课区互动视频环节实体层
 *
 * @author: system
 * @date: 2023/03/19
 */
@Setter
@Getter
@TableName("pl_prepare_video_point")
public class PrepareVideoPointEntity extends UpdateTimeEntity implements PrepareBaseParam {
    /**
     * 备课区id
     */
    @TableField(value = "prepare_id")
    private Long prepareId;
    /**
     * 备课区互动视频id
     */
    @TableField(value = "video_id")
    private Long videoId;
    /**
     * 名称
     */
    @TableField(value = "name")
    private String name;
    /**
     * 互动视频帧类型，QUESTION:试题；IMAGE:图片；DOCUMENT:文档；
     */
    @TableField(value = "point_type")
    private PrepareVideoPointTypeEnum pointType;
    /**
     * 环节时间点
     */
    @TableField(value = "point_time")
    private BigDecimal pointTime;
    /**
     * 环节序号
     */
    @TableField(value = "point_number")
    private Integer pointNumber;
    /**
     * 文件列表，根据帧类型来区分是图片还是文档
     */
    @TableField(value = "files")
    private String files;
    /**
     * 总分
     */
    @TableField(value = "total_score")
    private BigDecimal totalScore;
    /**
     * 题目总数
     */
    @TableField(value = "question_total")
    private Integer questionTotal;
    /**
     * 题型总数
     */
    @TableField(value = "question_type_total")
    private Integer questionTypeTotal;
    /**
     * 题目内容
     */
    @TableField(value = "question_content")
    private String questionContent;
}
